import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm'
import { AccountService } from './account/services/account/account.service';
import { AccountEntity } from './account/entities/account.entity';
import { AccountResolver } from './account/resolvers/account/account.resolver';
import {RoleEntity} from "./role/entities/role.entity"
import {AccountRoleEntity} from "./account/entities/account.role.entity"
import {AuthModule} from "../auth/auth.module"
import {RoleService} from "./role/services/role/role.service"
import {RoleResolver} from "./role/resolvers/role/role.resolver"
import {AccountRoleService} from "./account/services/account-role/account-role.service"
import {AccountRoleResolver} from "./account/resolvers/account-role/account-role.resolver"
import {LoginResolver} from "./login/resolvers/login/login.resolver"
import {LoginService} from "./login/services/login/login.service"

@Module({
    imports: [
        TypeOrmModule.forFeature([
            AccountEntity,
            RoleEntity,
            AccountRoleEntity
        ]),
        AuthModule
    ],
    controllers: [],
    providers: [
        AccountService,
        AccountResolver,
        RoleService,
        RoleResolver,
        AccountRoleService,
        AccountRoleResolver,
        LoginResolver,
        LoginService
    ]
})
export class SystemModule { }
